import request from '@/utils/request'

// 查询院校主列表
export function listColletgial(query) {
  return request({
    url: '/infoCollegial/colletgial/list',
    method: 'get',
    params: query
  })
}

// 查询院校主详细
export function getColletgial(id) {
  return request({
    url: '/infoCollegial/colletgial/' + id,
    method: 'get'
  })
}

// 新增院校主
export function addColletgial(data) {
  return request({
    url: '/infoCollegial/colletgial',
    method: 'post',
    data: data
  })
}

// 修改院校主
export function updateColletgial(data) {
  return request({
    url: '/infoCollegial/colletgial',
    method: 'put',
    data: data
  })
}

// 删除院校主
export function delColletgial(id) {
  return request({
    url: '/infoCollegial/colletgial/' + id,
    method: 'delete'
  })
}
